home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / SDKs / Apple Game Sprockets / InputSprocket / Sample Drivers / ISp Sample ADB Sources / ISpSampleADBRes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-15  |  2.6 KB  |  109 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************
  2.  
  3. File:      ISpSampleADBRes.h
  4.  
  5. Copyright © 1996, 1997, 1998 Apple Computer, Inc., All Rights Reserved
  6.  
  7.  
  8. You may incorporate this sample code into your applications without
  9. restriction, though the sample code has been provided "AS IS" and the
  10. responsibility for its operation is 100% yours.  However, what you are
  11. not permitted to do is to redistribute the source as "DSC Sample Code"
  12. after having made changes. If you're going to re-distribute the source,
  13. we require that you make it clear in the source that the code was
  14. descended from Apple Sample Code, but that you've made changes.
  15.  
  16. *************************************************************************************/
  17.  
  18. #ifndef __INSPSAMPLEADBRES__
  19. #define __INSPSAMPLEADBRES__
  20.  
  21. enum
  22. {
  23.     kDITLID_Config = 128
  24. };
  25.  
  26. // dialog items
  27. enum
  28. {
  29.     kDialogItem_StickUp        = 1,
  30.     kDialogItem_StickLeft,
  31.     kDialogItem_StickDown,
  32.     kDialogItem_StickRight,
  33.     
  34.     kDialogItem_ThrottleLower,
  35.     kDialogItem_ThrottleHigher,
  36.     kDialogItem_RudderLeft,
  37.     kDialogItem_RudderRight,
  38.     
  39.     kDialogItem_Trigger,
  40.     kDialogItem_TopButton,
  41.     kDialogItem_StickHighButton,
  42.     kDialogItem_StickLowButton,
  43.     kDialogItem_BaseFarLeft,
  44.     kDialogItem_BaseFarRight,
  45.     kDialogItem_BaseNearLeft,
  46.     kDialogItem_BaseNearRight,
  47.  
  48.     kDialogItem_DPadUp,
  49.     kDialogItem_DPadLeft,
  50.     kDialogItem_DPadDown,
  51.     kDialogItem_DPadRight,
  52.     
  53.     kDialogItem_Checkbox_Reverse_StickVertical    = 21,
  54.     kDialogItem_Checkbox_Reverse_HatVertical    = 22,
  55.     kDialogItem_Checkbox_Reverse_Throttle        = 23,
  56.     kDialogItem_Checkbox_Reverse_Rudder            = 24,
  57.     
  58.     kDialogItem_GroupBox_Stick = 25,
  59.     kDialogItem_GroupBox_POVHat,
  60.     kDialogItem_GroupBox_Throttle,
  61.     kDialogItem_GroupBox_Rudder,
  62.     kDialogItem_GroupBox_StickButtons,
  63.     kDialogItem_GroupBox_BaseButtons,
  64.     
  65.     kDialogItem_FirstPopup     =    kDialogItem_StickUp,
  66.     kDialogItem_NumPopups     =    kDialogItem_DPadRight
  67. };
  68.  
  69. // 'isdv'
  70. enum
  71. {
  72.     kDeviceResource_SidewinderPro = 128
  73. };
  74.  
  75. // 'isel'
  76. enum
  77. {
  78.     kElementResource_XAxis             = 128,
  79.     kElementResource_YAxis            = 129,
  80.     kElementResource_Throttle        = 130,
  81.     kElementResource_Rudder            = 131,
  82.     kElementResource_Hat            = 132,
  83.  
  84.     kElementResource_Trigger,
  85.     kElementResource_TopButton,
  86.     kElementResource_StickHighButton,
  87.     kElementResource_StickLowButton,
  88.     kElementResource_BaseFarLeft,
  89.     kElementResource_BaseFarRight,
  90.     kElementResource_BaseNearLeft,
  91.     kElementResource_BaseNearRight,
  92.  
  93.     kElementResource_FirstItem = kElementResource_XAxis,
  94.     kElementResource_LastItem = kElementResource_BaseNearRight
  95. };
  96.  
  97. // STR#
  98. enum
  99. {
  100.     kStrList_Main = 121,
  101.     kStrList_Main_Stick = 1,
  102.     kStrList_Main_POVHat,
  103.     kStrList_Main_Throttle,
  104.     kStrList_Main_Rudder,
  105.     kStrList_Main_StickButtons,
  106.     kStrList_Main_BaseButtons
  107. };
  108.  
  109. #endif